﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.ISVApps.Common.ViewModels;
using Microsoft.Phone.Tasks;
using System.Collections.Generic;

namespace Microsoft.ISVApps.Common.ViewModels
{
    public class Product
    {
        public string ProductName { get; set; }
        public string ProductDescription { get; set; }
    }

    public class ProductList
    {
        public List<Product> Products { get; set; }
        public ProductList()
        {
            Products = new List<Product>();
        }
    }

    public class Feed
    {
        public string FeedTitle { get; set; }
        public DateTime FeedDate { get; set; }
        public string FeedUrl { get; set; }

        public SimpleCommand<string> GoToUrl { get; private set; }

        public Feed()
        {
            GoToUrl = new SimpleCommand<string>((str) =>
            {
                WebBrowserTask tsk = new WebBrowserTask();
                tsk.Uri = new Uri(str);
                tsk.Show();
            });
        }
    }
}
